[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FICOMP            Integer Compare and Pop     Exception Flags: I D

FICOMP memory operand

       Logic:      cmp source, ST
                   pop the stack
                   sets condition codes in the status word:

                   C3 C2 C1 C0    Means
                   -- -- -- --    -----------
                   0  0  ?  0     ST > source
                   0  0  ?  1     ST < source
                   1  0  ?  0     ST = source
                   1  1  ?  1     ST not comparable to source

     FICOMP compares two integers and leaves the result encoded in the status
     word as shown above, then pops the stack (discarding ST). The source
     operand can be either a memory short integer or a memory word integer,
     and the implied register operand is ST.

  --------------------------------------------------------------------------
   Operands            Clocks         Bytes           Example
   FICOMP MEMORY_INT   77-93+EA         5             FICOMP INTEGER_NUMBER
  --------------------------------------------------------------------------

See Also: FCOM FCOMP FCOMPP FICOM
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson